package objectClasses;
import java.io.IOException;
import java.util.LinkedList;


public class Event {
	private String Rules;
	private String Requirements;
	private String Eligible_Materials;
	private LinkedList<Judge> Judges;
	
	public Event(String mats, String rules, String req) throws IOException{
		Eligible_Materials = mats;
		Rules = rules;
		Requirements = req;
		Judges = new LinkedList<Judge>();
		Judges.add(new Judge(req, "Hello", "Sir", req, req));
		Judges.add(new Judge(req, "mm", "Sissr", req, req));
	}
	
	public String get_rules(){
		return Rules;
	}
	
	public String get_Requirements(){
		return Requirements;
	}
	
	public String get_Eligible_Materials(){
		return Eligible_Materials;
	}
	
	public String[] get_list_judges(){
		String[] temp = new String[Judges.size()];
		int i =0;
		for(Judge c:Judges){
			temp [i] = c.getFirst_Name();
			i++;
		}
		return temp;
	}
	public void add_judge(Judge arg_0){
		if(Judges.contains(arg_0)){
			System.out.print("Already exists within this event");
		}
		else{
		Judges.add(arg_0);
		}
	}
	public void remove_judge(Judge arg_0){
		if(Judges.contains(arg_0)){
			Judges.remove(arg_0);
		}else{
			System.out.print("Judge does not exist");
		}
	}

}
